import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


// import './styles/fonts/iconfont.css'

// import 'http://at.alicdn.com/t/font_2030890_v7ovff8761e.css'
// import './styles/icon.css'

import Vant from 'vant';
import 'vant/lib/index.css';

import './styles/index.css'

Vue.use(Vant);
//配置根元素的基准 font-size
import 'amfe-flexible'

//  注册全局组件
import hh  from  '@/common/head.vue'
Vue.component('hh',hh)

import hh2  from  '@/common/head2.vue'
Vue.component('hh2',hh2)

//事件格式过滤器
import  moment   from  'moment'
Vue.filter('format',(time)=>{
  moment.locale('zh-cn')
  return moment(time).fromNow(); // 4 年前
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App),
  // watch:{
  //   "$route.path"(newV,oldV){
  //     console.log(newV,oldV,99999);
  //   },
  // }
}).$mount('#app')
